import request from '@/utils/request'

// 查询活动专区列表
export function listMenNew(query) {
  return request({
    url: '/men/menNew/list',
    method: 'get',
    params: query
  })
}

// 查询活动专区详细
export function getMenNew(id) {
  return request({
    url: '/men/menNew/' + id,
    method: 'get'
  })
}

// 新增活动专区
export function addMenNew(data) {
  return request({
    url: '/men/menNew',
    method: 'post',
    data: data
  })
}

// 修改活动专区
export function updateMenNew(data) {
  return request({
    url: '/men/menNew',
    method: 'put',
    data: data
  })
}

// 删除活动专区
export function delMenNew(id) {
  return request({
    url: '/men/menNew/' + id,
    method: 'delete'
  })
}

// 导出活动专区
export function exportMenNew(query) {
  return request({
    url: '/men/menNew/export',
    method: 'get',
    params: query
  })
}